import Vue from 'vue'
import Router from 'vue-router'
import seed from '@/components/dig/seed'
import index from '@/components/alchemy/index'
import assets from '@/components/dig/assets' //人参我的资产
import sold from '@/components/dig/sold'
import ginsengBalance from '@/components/dig/ginsengBalance'
import ginsengRecharge from '@/components/dig/ginsengRecharge'
import index_ginsengRecharge from '@/components/alchemy/ginsengRecharge'
import assetsss from '@/components/dig/assetss' //人参个人资料
import assetss from '@/components/alchemy/assets' //炼丹个人资料
import aceuserdata from '@/components/alchemy/userdata' //炼丹我的资产
import seed_two from '@/components/dig/seed_two'
import assetes from '@/components/alchemy/assetes'
import login from '@/components/login'//登录
import register from '@/components/register'//注册
import register_success from '@/components/register_success'//注册成功
import choosePage from '@/components/choosePage'
import seedstart from '@/components/dig/start'
import indexstart from '@/components/alchemy/start'
import forget from '@/components/forget'
import winningResult from '@/components/dig/winningResult'
import index_ginsengBalance from '@/components/alchemy/ginsengBalance'
import seedginseng_gameLog from '@/components/dig/ginseng_gameLog'
import indexginseng_gameLog from '@/components/alchemy/ginseng_gameLog'
import index_dugResult from '@/components/dig/index_dugResult'
import index_result from '@/components/alchemy/index_dugResult'
import seed_dugResult from '@/components/dig/seed_dugResult'
import progress from '@/components/progressbar'
import thressseed from '@/components/thressseed'
import digPopup from '@/components/dig/popup'
import digSuccess from '@/components/dig/digSuccess'
import loading from '@/components/loading.vue'
import end from '../components/end.vue'
import nohuodong from '../components/nohuodong.vue'
import gameArea from '@/components/gameArea.vue'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/index_result',
      name: 'index_result',
      component: index_result
    },
    {
      path: '/thressseed',
      name: 'thressseed',
      component: thressseed
    },
    {
      path: '/progress',
      name: 'progress',
      component: progress
    },
    {
      path: '/gengseng_dugresult',
      name: 'gengseng_dugresult',
      component: seed_dugResult
    },
    {
      path: '/index_dugresult/:id',
      name: 'index_dugresult',
      component: index_dugResult
    },
    {
      path: '/',
      component: register
    },
    {
      path: '/seed/:id',
      component: seed
    },
    {
      path: '/assetsss',
      component: assetsss
    },
    {
      path: '/ginsengBalance',
      name: 'ginsengBalance',
      component: ginsengBalance
    },
    {
      path: '/index_ginsengBalance',
      name: 'index_ginsengBalance',
      component: index_ginsengBalance
    },
    {
      path: '/ginsengRecharge',
      name: 'ginsengRecharge',
      component: ginsengRecharge
    },
    {
      path: '/index_ginsengRecharge',
      name: 'index_ginsengRecharge',
      component: index_ginsengRecharge
    },
    {
      path: '/assets',
      component: assets
    },
    {
      path: '/sold',
      component: sold
    },
    {
      path: '/index',
      component: index
    },
    {
      path: '/aceuserdata',
      component: aceuserdata
    },
    {
      path: '/assetss',
      component: assetss
    },
    {
      path: '/seed_two',
      name: 'seed_two',
      component: seed_two
    },
    {
      path: '/assetes',
      name: 'assetes',
      component: assetes
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/registerSuccess',
      name: 'register_success',
      component: register_success
    },
    {
      path: '/choosePage',
      name: 'choosePage',
      component: choosePage
    },
    {
      path: '/indexstart',
      name: 'indexstart',
      component: indexstart
    },
    {
      path: '/seedstart',
      name: 'seedstart',
      component: seedstart
    },
    {
      path: '/forget',
      name: 'forget',
      component: forget
    },
    {
      path: '/seedginseng_gamelog',
      name: ' seedginseng_gameLog',
      component: seedginseng_gameLog
    },
    {
      path: '/indexginseng_gamelog',
      name: ' indexginseng_gamelog',
      component: indexginseng_gameLog
    },
    {
      path: '/digPopup/:id',
      name: 'digPopup',
      component: digPopup
    },
    {
      path: '/digSuccess/:number',
      name: 'digSuccess',
      component: digSuccess
    },
    {
      path: '/winningResult',
      name: 'winningResult',
      component: winningResult
    },
    {
      path: '/loading',
      name: 'loading',
      component: loading
    },
    {
      path: '/end',
      name: 'end',
      component: end
    },
    {
      path: '/nohuodong',
      name: 'nohuodong',
      component: nohuodong
    },
    {
      path: '/gameArea/:id',
      name: 'gameArea',
      component: gameArea
    }
  ]
})
